<script>
import Base from './actionPanel';
export default {
	extends: Base,
	computed: {
		actionList() {
			return (
				this.model &&
				this.model.filter(action => {
					return action.locate === 'right';
				})
			);
		},
	},
	methods: {
		actionShow(action) {
			var show = action.locate !== 'hidden';
			if (show) {
				this.hasActionShow = true;
			}
			return show;
		},
	},
	created() {
		this.$parent.$actionCollection = this;
	},
};
</script>

<style>

</style>
